import request from '@/utils/request'

export function getJournalRank(data) { //书籍统计
    return request({
        method: 'get',
        url: '/homeStat/openApi/getJournalRank',
        params: data
    })
}

export function getNewsRank(data) { //文章统计
    return request({
        method: 'get',
        url: '/homeStat/openApi/getNewsRank',
        params: data
    })
}

export function getSum() { //总数统计
    return request({
        method: 'get',
        url: '/homeStat/openApi/getSum'
    })
}

export function getClick(data) { //时间统计
    return request({
        method: 'get',
        url: '/homeStat/openApi/getClick',
        params: data
    })
}